-
Notifications
You must be signed in to change notification settings - Fork 814
Update tximeta/tximport module to fix sample name mangling #1623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pinin4fjords
wants to merge
2
commits into
dev
Choose a base branch
from
fix_r_checknames_from_dev
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes #1445 Updates the tximeta/tximport module to include the fix from nf-core/modules PR #9407, which adds check.names=FALSE to data.frame() calls to prevent R from modifying sample names. This resolves an issue where sample names starting with numbers or containing special characters were being modified, causing downstream errors in the SUMMARIZEDEXPERIMENT process when trying to match sample IDs between count matrices and samplesheet metadata.
|
SPPearce
reviewed
Nov 15, 2025
| - '"quants/*"': | ||
| type: directory | ||
| description: Directory containing quantification files | ||
| - quants/*: {} |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened here?
SPPearce
approved these changes
Nov 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR checklist
nf-core lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).Description
Fixes #1445
This PR updates the
tximeta/tximportmodule to include the fix from nf-core/modules PR nf-core/modules#9407.The Problem
Users reported that the pipeline was failing with the error:
This occurred when sample names:
1A2,5B2)sample-1,D10-D)Root Cause
R's
data.frame()function automatically modifies column/row names whencheck.names=TRUE(the default):1A2→X1A2D10-D→D10.DWhile PR #1380 partially fixed this issue in v3.15.1 by adding
check.names = FALSEto some functions, it missed the critical line in thetximport.rscript wherecoldatais created. This directly affected sample names that became column names in output matrices, causing mismatches when the downstreamsummarizedexperimentprocess tried to match them against the original samplesheet metadata.Solution
Updated the
tximeta/tximportmodule to the latest version which addscheck.names = FALSEto three function calls:read.csv()when reading transcript info (line 76)data.frame()when creating extra transcript info rows (line 79)data.frame()when creating coldata (line 134) - the main fixTesting
Users can now safely use sample names with:
The fix preserves sample names exactly as provided in the input samplesheet.